package com.zyh.method;

public class MethodDemo1 {
    public static void main(String[] args) {
        int[] a = {1, 3, 4, 64, 636, 323, 234};
        m1(a);
    }

    public static void m1(int[] arr) {
        System.out.print("[");
        for (int i = 0; i < arr.length; i++) {
            if (i == arr.length - 1) {
                System.out.print(arr[i]);
            } else {
                System.out.print(arr[i] + ",");
            }
        }
        System.out.print("]");
    }
}
